* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #444;
    height: 100vh;
}

label {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 60px;
    cursor: pointer;
    position: relative;
}

label::before {
    width: 60%;
    height: 4px;
    background-color: #2b2b2b;
    content: '';
    border-radius: 4px;
    position: absolute;
}

input[type="checkbox"] {
    position: absolute;
    appearance: none;
}

#icon {
    width: 60px;
    height: 100%;
    position: absolute;
    left: 0;
    transition: .5s;
}

label input:checked~#icon {
    left: 60px;
}

#icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 100%;
    background: linear-gradient(#fff, #fff, #e3e3e3);
    filter: blur(1px);
    z-index: 1;
}

#icon::after {
    content: '';
    position: absolute;
    top: 0;
    right: -1px;
    width: 10px;
    height: 100%;
    background-color: #9d9d9d;
    filter: blur(1px);
}

#iconBox {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(#dbdae1, #a3aaba);
    box-shadow:
        5px 5px 5px rgba(0, 0, 0, 0.1),
        15px 15px 15px rgba(0, 0, 0, 0.1),
        20px 20px 15px rgba(0, 0, 0, 0.1),
        30px 30px 15px rgba(0, 0, 0, 0.1),
        inset 1px 1px 2px #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hh {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 19px;
    width: 2px;
    height: 10px;
    border-radius: 15px;
    background-color: #7a7a7a;
    transition: 0.2s;
}

#cir {
    position: absolute;
    width: 25%;
    height: 25%;
    background-color: transparent;
    clip-path: polygon(50% 50%, 65% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%, 35% 0%);
    border-radius: 50%;
    border: 2px solid #7a7a7a;
    transition: 0.2s;
}

input[type="checkbox"]:checked {
    box-shadow:
        -10px -10px 15px rgba(255, 255, 255, 0.5),
        10px 10px 15px rgba(70, 70, 70, 0.12),
        inset -15px -15px 15px rgba(255, 255, 255, 0.5),
        inset 15px 15px 15px rgba(70, 70, 70, 0.12);
}

input[type="checkbox"]:checked~#icon #iconBox #cir {
    border: 2px solid #15e38a;
}

input[type="checkbox"]:checked~#icon #iconBox #hh {
    background-color: #15e38a;
}